
local nmgpack = require "nmgpack"

print(nmgpack.spencode)
print(nmgpack.spdecode)

local aa = "123456789";

local aac,sz = nmgpack.spencode(aa,#aa)
print("c",sz)
print("srcc",aac)

local aad = nmgpack.spdecodestr(aac,sz)

print(aad)